package com.chinasoft.movies.service.impl;

import com.chinasoft.movies.mapper.DirectorByPopularityMapper;
import com.chinasoft.movies.pojo.DirectorByPopularity;
import com.chinasoft.movies.service.DirectorByPopularityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DirectorByPopularityServiceImpl implements DirectorByPopularityService {
    @Autowired
    private DirectorByPopularityMapper directorByPopularityMapper;

    @Override
    public List<DirectorByPopularity> getAllDirectorByPopularity() {
        return directorByPopularityMapper.queryAll();
    }
}
